led.bin:start.o
	arm-linux-ld -Ttext 0x0 -o led.elf $^
	arm-linux-objcopy -O binary led.elf led.bin
	arm-linux-objdump -D led.elf > led_elf.dis
	gcc -o mktiny210 make_image.c
	./mktiny210 led.bin 210.bin


%.o:%.S
	arm-linux-gcc -c -o $@ $<
	
%.o:%.c
	arm-linux-gcc -c -o $@ $<

clean:
	rm *.o *.elf *.bin *.dis -f